<template>
	<view class="hd-detail-container">
		<!-- <rh-tel v-model="phonenumber"></rh-tel> -->
		<!-- <rh-code v-model="code" :phonenumber="phonenumber"></rh-code> -->
		<!-- <uqrcode ref="uqrcode" size="400" sizeUnit="rpx" auto canvas-id="qrcode" value="qrcode"></uqrcode> -->
		<!-- <rh-qrcode :qrcode="'https://baidu.com'"></rh-qrcode> -->
		<!-- <rh-picker label="测试" :columns="columns"></rh-picker> -->
		<!-- <rh-submit-btn text="提交" class-name="special" color="#23994f" :submit-action="submit"></rh-submit-btn> -->
		<rh-tabs :list="tabList"></rh-tabs>
	</view>
</template>

<script>
	const TABLIST = [
		{idx: 0, isLoadMore: true, loadingText: '', name: "巡检任务", list: [], params_list: {pageNum: 1, pageSize: 10, taskStatus: '0'}},
		{idx: 1, isLoadMore: true, loadingText: '', name: "巡检记录", list: [], params_list: {pageNum: 1, pageSize: 6}},
	]
	export default {
		data() {
			return {
				name: '2121',
				phonenumber: '2121',
				code: '',
				columns: [
					{dictLabel: '测试数据1', dictValue: 'val1'}
				],
				tabList: TABLIST
			}
		},
		mounted() {
			let _self = this
		},
		methods: {
			submit(val){
				let _self = this
				return new Promise((resolve, reject) => {
					// resolve({name: this.name})
					console.log(_self.phonenumber, _self.code)
					reject(false)
				})
			},
		}

	}
</script>


